﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.Linq.Mapping;

namespace StudentMgmt.Model
{
    [Serializable]
    [Table(Name = "Reward")]
   public  class RewardInfo
    {  
       public RewardInfo() { }

        public RewardInfo(string Reward_Id , string StuNo ,string Reward_Code , DateTime Create_Date , string Reward_Descriptions){
            this.Reward_Id = Reward_Id;
            this.StuNo = StuNo;
            this.Reward_Code = Reward_Code;
            this.Create_Date = Create_Date;
            this.Reward_Descriptions = Reward_Descriptions;
        }

       [Column(Name = "Reward_Id", IsPrimaryKey = true, DbType = "char(36)")]
        public string Reward_Id { get; set; }

        [Column(Name="StuNo",DbType="char(6)")]
        public string StuNo { get; set; }

        [Column(Name = "Reward_Code", DbType = "char(5)")]
        public string Reward_Code { get; set; }

        [Column(Name = "Create_Date", DbType = "datetime")]
        public DateTime Create_Date { get; set;}

        [Column(Name = "Reward_Descriptions", DbType = "varchar(4000)")]
        public string Reward_Descriptions { set; get; }
    }
}
